﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Vehicles : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
    }

    protected void vehicleGridViewSelectedIndexChange(object sender, EventArgs e)
    {
        DataSet vehicleRentalResult = new DataSet();
        vehicleRentalResult = quickwheelz.getRentalInfo(vehicleGridView.SelectedDataKey.Value.ToString());

        if (vehicleRentalResult != null)
        {
            vehicleRentalDetailsView.DataSource = vehicleRentalResult;
            vehicleRentalDetailsView.DataBind();
        }
        else
        {
            lblVehicleRentalDetailsViewResult.Text = "The selected vehicle is currently not Rented.";
        }
    }

    protected void bindRentalDetailsView()
    {
            
    }
}